Usage:
LicenseHelper.IronPdfRegister();
var htmlToPdf = new IronPdf.HtmlToPdf();

using HarmonyLib;
using System.Reflection;

namespace YourOwnNamespace
{
[HarmonyPatch(typeof(HarmonyPatch))]
internal static class LicenseHelper
{
internal static void IronPdfRegister()
{
var harmony = new Harmony("com.ironpdf.product");
harmony.PatchAll();
IronPdf.License.LicenseKey = "IRONPDF-4090-177563-68AC59-F13E1106FC-B90B363A-NEx2946-4157";
}

[HarmonyTargetMethods]
static IEnumerable<methodbase> TargetMethods()
{
Assembly assembly = Assembly.LoadFrom("IronPdf.dll");
var type = AccessTools.GetTypesFromAssembly(assembly).Where(c => c.Name == "\uEB88").FirstOrDefault();
var methods = AccessTools.GetDeclaredMethods(type).Where(method => method.ReturnType == typeof(Boolean));

return methods.Cast<methodbase>();
}

static void Prefix(ref bool __result)
{
__result = true;
}

static void Postfix(ref bool __result)
{
__result = true;
}
}
}
=================
www.downloadly.ir